﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERP.Domain.SalesManagement
{
    /// <summary>
    /// 销售单
    /// </summary>
    public class Sales
    {
        /// <summary>
        /// 销售Id
        /// </summary>
        [Key]
        public int Id {  get; set; }
        /// <summary>
        /// 销售单号
        /// </summary>
        public string SalesCode {  get; set; }
        /// <summary>
        /// 销售日期
        /// </summary>
        public DateTime ? SalesTime {  get; set; }
        /// <summary>
        /// 销售合同Id
        /// </summary>
        public int PhraseId {  get; set; }
        /// <summary>
        /// 客户
        /// </summary>
        public int CustomerId {  get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        public string TaxRate { get; set; }
        /// <summary>
        /// 未税金额
        /// </summary>
        public decimal SalesTax {  get; set; }
        /// <summary>
        /// 含税金额
        /// </summary>
        public decimal Payment {  get; set; }
        /// <summary>
        /// 产品数量
        /// </summary>
        public int ProductICount {  get; set; }
        /// <summary>
        /// 逻辑删除标识符
        /// </summary>
        public bool? IsDelete { get; set; } = false;
    }
}
